package org.smart4j.framework.bean;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
 * description: Request 封装请求信息
 * @version v1.0
 * @author w
 * @date 2018年8月31日下午9:29:27
 *
 */
public class Request {
	/**
	 * 请求方法  
	 * example: post, get,delete,put ...
	 */
	private String method ;
	
	/**
	 * 请求路径
	 */
	private String path ;

	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public Request(String method, String path) {
		super();
		this.method = method;
		this.path = path;
	}

	@Override
	public int hashCode() {
		return HashCodeBuilder.reflectionHashCode(this);
	}

	@Override
	public boolean equals(Object obj) {
		return EqualsBuilder.reflectionEquals(this, obj);
	}
	
	
}
